package the_Crash.Stylists;

import repast.simphony.space.continuous.ContinuousSpace;
import repast.simphony.space.grid.Grid;
import repast.simphony.space.grid.GridPoint;
import the_Crash.BaseSimEntity;
import the_Crash.MovementStates;
import the_Crash.Signal;

public class SignalUnit extends BaseSimEntity 
{	
	private Signal parent;
	
	private MovementStates movementState;
	
	
	public boolean isActive() {
		return parent.getCurrentState().contains(movementState);
	}

	public SignalUnit(Signal parent, MovementStates movementState, GridPoint location, Grid<Object> grid,
			ContinuousSpace<Object> space) {
		super(location, grid, space);		
		this.parent = parent;
		this.movementState = movementState;
	}
	

}